<template>
  <!-- 搜索列表 -->
  <div>
    <van-cell-group>
      <van-cell :title="item" v-for="(item,index) in data" :key="index" @click="SearchClick(item)"/>
    </van-cell-group>
    <div class="m">没有更多了</div>
  </div>
</template>

<script>
export default {
    props:["data"],
  data() {
    return {};
  },
  methods:{
      SearchClick(item){
          this.$emit("fn",item)
      }
  }
};
</script>
 
<style lang = "less" scoped>
.m{
    height: .5rem;
    line-height: .5rem;
    text-align: center;
    color: #969799;
}
</style>